function getStorage (key) {
  return localStorage.getItem(key)
}

export const userInfo = JSON.parse(getStorage('middlewareUserInfor')) || {}

export const accessToken = JSON.parse(getStorage('accessToken')) || {}

export const userKey = window.parent.userKey || 'bpm_web_user'

export const server = window.parent.httpUrl || 'https://xn.szyuto.com:90'

export const apis = {
  getColTipData: '/web/Home/SysApi/getColTipData',
  getReportData: '/web/Home/SysApi/getReportData',
  editSingleDynReportData: '/web/Home/SysApi/editSingleDynReportData',
  delBill: '/web/Home/SysApi/delBill',
  getGridJs: '/web/Home/SysApi/getGridJs'
}

export default {
  userInfo,
  accessToken,
  userKey,
  server,
  apis
}
